<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset="utf-8">
<title>和粉列表</title>
<@fm.header />
<script>
function doSearch(){    
    $('#tt').datagrid('load', {    
        startTime: $('#startTime').datetimebox('getValue'),
        endTime: $('#endTime').datetimebox('getValue')
    });
}

function formatCheckConversion(value,row,index){
	return value + "%";
}

function formatSendConversion(value,row,index){
	return value + "%";
}

function formatSmsConversion(value,row,index){
	return value + "%";
}

function formatRegisterConversion(value,row,index){
	return value + "%";
}

function formatTotalConversion(value,row,index){
	return value + "%";
}
</script>
</head>
<body class="cmp-list-body">
<div id="tb" style="padding:3px">
    <span>时间:</span>
    <input type="text" class="easyui-datebox" id="startTime" />至
    <input type="text" class="easyui-datebox" id="endTime" />
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch();">查询</a> 
    
</div>
<table id="tt" class="easyui-datagrid" title="和粉列表" iconCls="icon-save" 
	url="/hefen/listJson" toolbar="#tb" rownumbers="true" idField="id"
	singleSelect="true" pagination="true" fitColumns="true" pageSize="15" pageList="[15,30,60,80,100]"> 
    <thead>
        <tr>
        	<th align="center" width="10%" field="time">日期</th>
        	<th align="center" width="10%" field="taskSuccessNum">任务成功数</th>
            <th align="center" width="10%" field="taskFailNum">任务失败数</th>
            <th align="center" width="10%" field="checkSuccessNum">校验成功数</th>
            <th align="center" width="10%" field="checkFailNum">校验失败数</th>
            <th align="center" width="10%" field="sendVeifySuccessNum">验证码成功数</th>
            <th align="center" width="10%" field="sendVerifyFailNum">验证码失败数</th>
            <th align="center" width="10%" field="smsSuccessNum">短信成功数</th>
            <th align="center" width="10%" field="smsFailNum">短信失败数</th>
            <th align="center" width="10%" field="regiterSuccessrifyNum">注册成功数</th>
            <th align="center" width="10%" field="regiterFailNum">注册失败数</th>
        	<th align="center" width="10%" field="checkConversion" formatter="formatCheckConversion">校验转化率</th>
            <th align="center" width="10%" field="sendConversion" formatter="formatSendConversion">验证码转化率</th>
            <th align="center" width="10%" field="smsConversion" formatter="formatSmsConversion">短信转化率</th>
            <th align="center" width="10%" field="registerConversion" formatter="formatRegisterConversion">注册转化率</th>
            <th align="center" width="10%" field="totalConversion" formatter="formatTotalConversion">总转化率</th>
        </tr>
    </thead>   
</table>
</body>
</html>